import request from '@/utils/request'

// 查询零件排产计划列表
export function listNcProcessingFormalSchedulingPlan(query) {
  return request({
    url: '/sales/ncProcessingFormalSchedulingPlan/list',
    method: 'get',
    params: query
  })
}

// 查询零件排产计划详细
export function getNcProcessingFormalSchedulingPlan(id) {
  return request({
    url: '/sales/ncProcessingFormalSchedulingPlan/' + id,
    method: 'get'
  })
}

// 新增零件排产计划
export function addNcProcessingFormalSchedulingPlan(data) {
  return request({
    url: '/sales/ncProcessingFormalSchedulingPlan',
    method: 'post',
    data: data
  })
}

// 修改零件排产计划
export function updateNcProcessingFormalSchedulingPlan(data) {
  return request({
    url: '/sales/ncProcessingFormalSchedulingPlan',
    method: 'put',
    data: data
  })
}

// 删除零件排产计划
export function delNcProcessingFormalSchedulingPlan(id) {
  return request({
    url: '/sales/ncProcessingFormalSchedulingPlan/' + id,
    method: 'delete'
  })
}
